/**
 *点击路由
 */
'use strict';

const conn = require('../../libs/DB/Conn');
const operationRecord = require("../sys/operationRecordAction");


module.exports = async function (params) {
    let updateObj = {
        district_name: params.districtName,
    }
    await conn("UPDATE district_file SET ? WHERE district_id = ?",[updateObj,params.districtId]);
    await operationRecord(params);
    return { success: true };
};
